package com.ruoyi.find.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.find.mapper.PropertyCommentMapper;
import com.ruoyi.find.domain.PropertyComment;
import com.ruoyi.find.service.IPropertyCommentService;

/**
 * 楼盘点评Service业务层处理
 * 
 * @author gjq
 * @date 2025-09-18
 */
@Service
public class PropertyCommentServiceImpl implements IPropertyCommentService 
{
    @Autowired
    private PropertyCommentMapper propertyCommentMapper;

    /**
     * 查询楼盘点评
     * 
     * @param id 楼盘点评主键
     * @return 楼盘点评
     */
    @Override
    public PropertyComment selectPropertyCommentById(Long id)
    {
        return propertyCommentMapper.selectPropertyCommentById(id);
    }

    /**
     * 查询楼盘点评列表
     * 
     * @param propertyComment 楼盘点评
     * @return 楼盘点评
     */
    @Override
    public List<PropertyComment> selectPropertyCommentList(PropertyComment propertyComment)
    {
        return propertyCommentMapper.selectPropertyCommentList(propertyComment);
    }

    /**
     * 新增楼盘点评
     * 
     * @param propertyComment 楼盘点评
     * @return 结果
     */
    @Override
    public int insertPropertyComment(PropertyComment propertyComment)
    {
        return propertyCommentMapper.insertPropertyComment(propertyComment);
    }

    /**
     * 修改楼盘点评
     * 
     * @param propertyComment 楼盘点评
     * @return 结果
     */
    @Override
    public int updatePropertyComment(PropertyComment propertyComment)
    {
        return propertyCommentMapper.updatePropertyComment(propertyComment);
    }

    /**
     * 批量删除楼盘点评
     * 
     * @param ids 需要删除的楼盘点评主键
     * @return 结果
     */
    @Override
    public int deletePropertyCommentByIds(Long[] ids)
    {
        return propertyCommentMapper.deletePropertyCommentByIds(ids);
    }

    /**
     * 删除楼盘点评信息
     * 
     * @param id 楼盘点评主键
     * @return 结果
     */
    @Override
    public int deletePropertyCommentById(Long id)
    {
        return propertyCommentMapper.deletePropertyCommentById(id);
    }
}
